package org.javaymw.springboot.service;

import org.javaymw.springboot.dto.BlogDto;
import org.javaymw.springboot.entity.BlogEntity;

import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.Page;

/**
 * @Auther: zhaoxinguo
 * @Date: 2018/10/23 11:40
 * @Description:
 */
public interface BlogService extends IService<BlogEntity> {

    Page<BlogDto> getBlogByPage(int pageNum, int pageSize);

    Integer save(BlogDto blogDto);

    BlogDto getBlogById(Long id);

    Integer update(BlogDto blogDto);

}
